<%@ page language="java" import="java.util.*" pageEncoding="GB18030"
	import="Reservation.*,Application.Dao.*,java.text.SimpleDateFormat,DomainData.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/loopedslider.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
	<div id="topbanner">

		<h1 id="sitename">
			Restaurant Website <span> CSE333</span>
		</h1>
	</div>
	<div id="wrap">
		<div id="header">
			<div id="slider">
				<div class="container">
					<ul class="slides">
						<li><div class="thumbholder">
								<img src="images/slide1.jpg" width="625" height="254"
									alt="First Image" />
							</div>
							<div class="txtholder">
								<h2>Slide Title</h2>
								<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
									sed do eiusmod tempor incididunt ut labore et dolore magna
									aliqua.</p>
							</div>
						</li>

						<li><div class="thumbholder">
								<img src="images/slide2.jpg" width="625" height="254"
									alt="First Image" />
							</div>
							<div class="txtholder">
								<h2>Slide Title</h2>
								<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
									sed do eiusmod tempor incididunt ut labore et dolore magna
									aliqua.</p>
							</div>
						</li>

						<li><div class="thumbholder">
								<img src="images/slide1.jpg" width="625" height="254"
									alt="First Image" />
							</div>
							<div class="txtholder">
								<h2>Slide Title</h2>
								<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
									sed do eiusmod tempor incididunt ut labore et dolore magna
									aliqua.</p>
							</div>
						</li>

						<li><div class="thumbholder">
								<img src="images/slide2.jpg" width="625" height="254"
									alt="First Image" />
							</div>
							<div class="txtholder">
								<h2>Slide Title</h2>
								<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,
									sed do eiusmod tempor incididunt ut labore et dolore magna
									aliqua.</p>
							</div>
						</li>

					</ul>
				</div>
				<ul class="pagination">
					<li><a href="#">1</a>
					</li>
					<li><a href="#">2</a>
					</li>
					<li><a href="#">3</a>
					</li>
					<li><a href="#">4</a>
					</li>
				</ul>
			</div>
		</div>
		<div id="menu">
			<ul>
				<li class="active"><a href="#">Home</a>
				</li>
				<li><a href="#">Breakfast </a>
				</li>
				<li><a href="#">Lunch</a>
				</li>
				<li><a href="#">Order Online</a>
				</li>
				<li><a href="#">Reservation</a>
				</li>
				<li><a href="#">About Us</a>
				</li>
				<li><a href="#">Contact Us</a>
				</li>


			</ul>
		</div>

		<div id="content">

			<div id="maincontent">
				<h2>Welcome To Our Restaurant</h2>
				<center>
				<table width=580>
					<tr>
						<td><font size="3"><b> All Reservations</b> </font></td>
					</tr>
					<tr bgcolor="#D6DCFE">
						<td></td>
					</tr>
				</table>
				
				<table width=580>
					<tr bgcolor="#F2F2F2">
						<td>Reservation ID</td>
						<td>From</td>
						<td>To</td>
						<td>Number Of People</td>
						<td>Table ID</td>
					</tr>
					<%
						List<Reservation> rlist = ReservationDAO.getAllReservations();
						for (int i = 0; i < rlist.size(); i++) {
							Reservation r = rlist.get(i);
							int rID = r.getReservationID();
							out.println("<tr><td>"
									+ r.getReservationID()
									+ "</td><td>"
									+ r.getFrom().toString()
									+ "</td><td>"
									+ r.getTo().toString()
									+ "</td><td>"
									+ r.getNumberOfPeople()
									+ "</td><td>"
									+ r.getTableID()
									+ "</td><td><a href='Reservation.jsp?rid='+rID></a></td></tr>");
						}
					%>
				</table>
				</center>
			</div>


			<div id="sidebar1">
				<h2 class="subhead">Categories</h2>
				<ul class="menu">
					<li><a href="AdminMakeReservation.jsp">Make Reservation</a>
					</li>
					<li><a href="ManageReservation.jsp">Reservation Management</a>
					</li>

					<li><a href="#"> &amp; Barbecues</a>
					</li>
					<li><a href="#">Finger Food</a>
					</li>
					<li><a href="#">High Tea</a>
					</li>
					<li><a href="#">Dinner Parties</a>
					</li>
					<li><a href="#">Buffet Lunch</a>
					</li>
					<li><a href="#">Sizzling </a>
					</li>



				</ul>
			</div>
			<div class="clear"></div>
		</div>

		<div id="footer">
			&copy; YourCompanyName.com | all Rights Reserved <span class="credit"><a
				href="http://www.cssheaven.org">Free CSS Template</a> by CSSHeaven</span>

		</div>
	</div>
	<script type="text/javascript" charset="utf-8">
		$(function() {
			$('#slider').loopedSlider({
				autoStart : 2500,
				restart : 5000
			});
		});
	</script>
</body>
</html>
